package hy.dao;

import hy.beans.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmpMapper {
    @Select("select id,name,sal from emp")
    List<Emp> selectAllEmp();
    @Delete("delete from emp where id=#{id}")
    int deleteEmpById(Integer id);
}